import './assets/main.css'
import "normalize.css"

import { createApp } from 'vue'
//导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'

// 1. 初始化 Vue实例
const app = createApp(App)
// 2. 引入配置好的各种实例化对象
import router from './router'
import store from './store'
// 引入 配置好的i18n
import i18n from './i18n'
// import * as ElIcons from "@element-plus/icons-vue"
// 引入mock配置
import "./mock"

// 注册element plus的所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 3. 挂载各种实例化对象
app.use(router)
app.use(store)
app.use(i18n)
app.use(ElementPlus)

app.mount('#app')
